import { findById } from '@/services/student';
import {defineStore} from 'pinia';
 export default defineStore('student',{
    state:() =>({
        updateVisible:false,
        student:{},
        students:[]
    }),
    actions:{
        async fetchStudent(id){
            this.student = await findById(id);
        }
    }
 });